package com.ruoyi.project.museums.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户回答表
 */
public class UserAnswer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户名字 */
    private String userName;

    /** 正确回答的数据量 */
    private int correctCount;

//    private int[] correctQuestionIds = new int[10];  //储存正确回答的问题ID

    /** 储存正确回答的问题ID */
    private String correctQuestionIds;

    /** 是否通关 */
    private Integer status = 0;

    /**  封装用户回答信息 */
    public UserAnswer(){
    }

    public UserAnswer(Long id, String userName, int correctCount, String correctQuestionIds, Integer status) {
        this.id = id;
        this.userName = userName;
        this.correctCount = correctCount;
        this.correctQuestionIds = correctQuestionIds;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getCorrectCount() {
        return correctCount;
    }

    public void setCorrectCount(int correctCount) {
        this.correctCount = correctCount;
    }

    public String getCorrectQuestionIds() {
        return correctQuestionIds;
    }

    public void setCorrectQuestionIds(String correctQuestionIds) {
        this.correctQuestionIds = correctQuestionIds;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
